package com.topisv.tms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * logistics_company表
 */
@Entity
@Table(name = "logistics_company")
public class LogisticsCompany extends IdEntity {

	private String companyCode;// '物流公司代码',
	private String companyName;// '物流公司简称',
	private String fullName;// '公司全名',
	private String regMailNo;// '运单号验证正则表达式，如：^[0-9]{12}$',
	private String logoUrl;

	private int expressStyleSize;

	// 不持久化到数据库，也不显示在Restful接口的属性.
	@Transient
	@JsonIgnore
	public int getExpressStyleSize() {
		return expressStyleSize;
	}

	public void setExpressStyleSize(int expressStyleSize) {
		this.expressStyleSize = expressStyleSize;
	}

	public LogisticsCompany(Long id) {
		this.id = id;
	}

	public LogisticsCompany() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Column(name = "company_code")
	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	@Column(name = "company_name")
	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	@Column(name = "full_name")
	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	@Column(name = "reg_mail_no")
	public String getRegMailNo() {
		return regMailNo;
	}

	public void setRegMailNo(String regMailNo) {
		this.regMailNo = regMailNo;
	}

	@Column(name = "logo_url")
	public String getLogoUrl() {
		return logoUrl;
	}

	public void setLogoUrl(String logoUrl) {
		this.logoUrl = logoUrl;
	}

	@Column(name = "customer_service_tel")
	public String getCustomerServiceTel() {
		return customerServiceTel;
	}

	public void setCustomerServiceTel(String customerServiceTel) {
		this.customerServiceTel = customerServiceTel;
	}

	@Column(name = "corp_level")
	public String getCorpLevel() {
		return corpLevel;
	}

	public void setCorpLevel(String corpLevel) {
		this.corpLevel = corpLevel;
	}

	@Column(name = "tracking_url")
	public String getTrackingUrl() {
		return trackingUrl;
	}

	public void setTrackingUrl(String trackingUrl) {
		this.trackingUrl = trackingUrl;
	}

	private String customerServiceTel;// '商家服务电话',
	private String corpLevel;// '公司级别。auth：认证；brand：品牌；noAuth：未认证；normal：普通',
	private String trackingUrl;// '运单跟踪查询地址',

}
